package com.dht.xiao.jianye.adapter;

import android.os.Build;
import android.support.annotation.RequiresApi;

import com.dht.xiao.jianye.R;
import com.dht.xiao.jianye.bean.EndReadBean;
import com.dht.xiao.jianye.bean.newdata.RfidQueryBean;

import cn.dlc.commonlibrary.ui.adapter.BaseRecyclerAdapter;

public class BedQueryAdapter extends BaseRecyclerAdapter<RfidQueryBean.DataBean> {
    @Override
    public int getItemLayoutId(int viewType) {
        return R.layout.item_bed_get;
    }

    @RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)
    @Override
    public void onBindViewHolder(CommonHolder holder, int position) {

        RfidQueryBean.DataBean bean = getItem(position);

        holder.getText(R.id.hospital).setText(bean.hotel);
        holder.getText(R.id.office).setText(bean.office);
        holder.getText(R.id.specification).setText(bean.title);
        holder.getText(R.id.nums).setText(bean.count);

    }
}
